/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

/**
 * <p>Project: javaseapp - Thread4
 * <p>Powered by webrx On 2021-08-24 09:21:19
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 16
 */
public class Thread4 {
    public static void main(String[] args) {
        var t = new Thread(() -> {
            System.out.println("ttttt");
        });
        t.setPriority(Thread.MAX_PRIORITY);
        t.start();
        //10个级别
        //Thread.MAX_PRIORITY 10
        //Thread.MIN_PRIORITY 1
        //Thread.NORM_PRIORITY 5
        System.out.println(Thread.currentThread().getPriority());
        System.out.println("mainmmmmmm");
    }
}
